CREATE TABLE [dbo].[DnnProduct_CDS_CopyPermissions]
(
[ID] [int] NOT NULL IDENTITY(1, 1) NOT FOR REPLICATION,
[PermissionID] [int] NOT NULL,
[SingleDevice] [bit] NOT NULL,
[ExpirationDate] [datetime] NOT NULL,
[Duration] [bigint] NOT NULL,
[IncInterval] [bigint] NOT NULL,
[InitialCount] [int] NOT NULL,
[MaxCount] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_CopyPermissions] ADD CONSTRAINT [PK_DnnProduct_CDS_CopyPermissions] PRIMARY KEY CLUSTERED  ([ID]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_CopyPermissions] WITH NOCHECK ADD CONSTRAINT [FK_DnnProduct_CDS_CopyPermissions_DnnProduct_CDS_Permissions] FOREIGN KEY ([PermissionID]) REFERENCES [dbo].[DnnProduct_CDS_Permissions] ([ID]) ON DELETE CASCADE ON UPDATE CASCADE NOT FOR REPLICATION
GO
